
package com.hlkj.pay.dto.ad;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import java.math.BigDecimal;
import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author HlpayTeam
 * @date 2024/10/24 16:44
 */
@Data
public class AdOtherConfigDto {

    /**
     * 私钥
     */
    @Schema(description = "产品id")
    private String productId;
    /**
     * 私钥
     */
    @Schema(description = "代理商户id")
    private String agentId;

    /**
     * 私钥
     */
    @Schema(description = "第三方发劵app key")
    private String appKey;
    /**
     * 私钥
     */
    @Schema(description = "第三方发劵 url")
    private String url;

    @Schema(description = "优惠劵配置")
    private List<CouponConfig> couponConfigs;

    @Data
    public static class CouponConfig {

        @Schema(description = "自有劵id")
        private Long couponId;

        @Schema(description = "发劵数量")
        private Integer num;

        @Schema(description = "第三方劵数量")
        private BigDecimal amount;

        @Schema(description = "类型 1 第三方优惠劵 0 自有劵")
        private Integer type;
    }
}
